﻿using System;
using Zeta;
using Zeta.Common;
using Zeta.Common.Helpers;
using Zeta.CommonBot;
using Zeta.Internals.Actors;
using Zeta.Navigation;
using IncubusCC.Settings;
using Zeta.TreeSharp;
using IncubusCC.Helpers;

namespace IncubusCC
{
    public class IncubusCCPlayerMover : IPlayerMover
    {
        #region Implementation of IPlayerMover

        public void MoveTowards(Vector3 to)
        {
            Composite movementProvider = ((IncubusCC)RoutineManager.Current).Movement;

            movementProvider.Start(to);
            movementProvider.Tick(to);
            movementProvider.Stop(to);
        }

        public void MoveStop()
        {
            ZetaDia.Me.Movement.MoveActor(ZetaDia.Me.Position);
        }

        #endregion

        private static bool notInCombat
        {
            get
            {
                if (CombatTargeting.Instance.FirstNpc == null)
                    return true;

                if (CombatTargeting.Instance.FirstNpc.Distance > 35f)
                    return true;

                else return false;
            }
        }
    }
}
